import java.util.Scanner;

public class SwitchCaseStatementTest {
    public static void main(String[] args) {
        //需求：从键盘输入1个星期的数字[1,7]，然后输出这个星期对应的单词
        Scanner input = new Scanner(System.in);

        System.out.print("请输入星期的数字[1,7]：");
        int week = input.nextInt();

        switch (week){
            case 1:
                System.out.println("Monday");
                break;
            case 2:
                System.out.println("Tuesday");
                break;
            case 3:
                System.out.println("Wednesday");
                break;
            case 4:
                System.out.println("Thursday");
                break;
            case 5:
                System.out.println("Friday");
                break;
            case 6:
                System.out.println("Saturday");
                break;
            case 7:
                System.out.println("Sunday");
                break;
            default://上面的case之外的值都走它
                System.out.println("输入有误！");
                break;
        }

        input.close();
    }
}
